package unit;


public class MyConfig{

    private final int JFrameSizeWidth;
    private final int JFrameSizeHeight;

    private final int JPanelLeftWidth;
    private final int JPanelLeftHeight;

    private final int JPanelRightHeight;
    private final int JPanelRightWidth;

    private final int InputBoxWidth;
    private final int InputBoxHeight;

    private final int ChatSendBoxWidth;
    private final int ChatSendBoxHeight;

    private final String IP;
    private final int PORT;

    public MyConfig(int JFrameSizeWidth, int JFrameSizeHeight, int JPanelLeftWidth, int InputBoxHeight, String IP, int PORT) {
        this.JFrameSizeWidth = JFrameSizeWidth;
        this.JFrameSizeHeight = JFrameSizeHeight;

        this.JPanelLeftWidth = JPanelLeftWidth;
        this.JPanelLeftHeight = JFrameSizeHeight;

        this.JPanelRightHeight = JFrameSizeHeight;
        this.JPanelRightWidth = JFrameSizeWidth - JPanelLeftWidth;

        this.InputBoxHeight = InputBoxHeight;
        this.InputBoxWidth = JFrameSizeWidth - JPanelLeftWidth;

        this.ChatSendBoxWidth = JFrameSizeWidth - JPanelLeftWidth;
        this.ChatSendBoxHeight = JFrameSizeHeight - InputBoxHeight;

        this.IP = IP;
        this.PORT = PORT;
    }

    public int getChatSendBoxHeight() {
        return ChatSendBoxHeight;
    }

    public int getChatSendBoxWidth() {
        return ChatSendBoxWidth;
    }

    public int getInputBoxHeight() {
        return InputBoxHeight;
    }

    public int getInputBoxWidth() {
        return InputBoxWidth;
    }

    public int getJFrameSizeWidth() {
        return JFrameSizeWidth;
    }

    public int getJFrameSizeHeight() {
        return JFrameSizeHeight;
    }

    public int getJPanelLeftWidth() {
        return JPanelLeftWidth;
    }

    public int getJPanelLeftHeight() {
        return JPanelLeftHeight;
    }

    public int getJPanelRightHeight() {
        return JPanelRightHeight;
    }

    public int getJPanelRightWidth() {
        return JPanelRightWidth;
    }

    public String getIP() {
        return IP;
    }

    public int getPORT() {
        return PORT;
    }
}